package com.j2203.service.impl;

import com.j2203.entity.Comment;
import com.j2203.entity.Game;
import com.j2203.entity.GmUser;
import com.j2203.mapper.CommentMapper;
import com.j2203.service.CommentService;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;

import java.util.List;
@Service
public class CommentServiceImpl implements CommentService {
    @Autowired(required = false)
    private CommentMapper commentMapper;

    @Override
    public List<Comment> commentselect() {
        return commentMapper.commentselect();
    }

    @Override
    public int commentadd(Comment comment) {
        return commentMapper.commentadd(comment);
    }

    @Override
    public int commentdel(int id) {
        return commentMapper.commentdel(id);
    }

    @Override
    public int commentuplike(Comment comment) {
        return commentMapper.commentuplike(comment);
    }

    @Override
    public Game gmbyid(int gid) {
        return commentMapper.gmbyid(gid);
    }

    @Override
    public GmUser userbyid(int uid) {
        return commentMapper.userbyid(uid);
    }
}
